<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<title>采购价展示列表页面</title>
		<%@ include file="../../common/jsp/header.jsp"%>
	</head>
	<body>
		<div class="wrapper wrapper-content animated fadeInRight">
			<div class="ibox float-e-margins">
				<form id="searchForm" action="${path }/purchase/query.do">
				<div class="col-sm-12">
					<!-- ------------按钮组 start------------ -->
	                <div class="alert alert-success" role="alert">采购价信息</div>

					<div class="row" style="display:inline-block">
						<div class="col-md-4">
							<div class="input-group">
								<span class="input-group-addon" id="supplierName">供应商</span>
								<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
								<span class="input-group-btn">
									<button class="btn btn-default" type="button">Go!</button>
								</span>
							</div>
						</div>
						<div class="col-md-4">
							<div class="input-group">
								<span class="input-group-addon" id="gamName">物资</span>
								<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
								<span class="input-group-btn">
									<button class="btn btn-default" type="button">Go!</button>
								</span>
							</div>
						</div>
						<div class="col-md-4">
							<div class="input-group">
								<span class="input-group-addon" id="groupName">采购组织</span>
								<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
								<span class="input-group-btn">
									<button class="btn btn-default" type="button">Go!</button>
								</span>
							</div>
						</div>
					</div>

					<div class="row" style="display:inline-block">
						<div class="col-md-4">
							<div class="input-group">
								<span class="input-group-addon" id="priceStatus">状态</span>
								<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon2">
								<span class="input-group-btn">
									<button class="btn btn-default" type="button">Go!</button>
								</span>
							</div>
						</div>
					</div>

					<div class="row"></div>

	                <div class="col-sm-8">
	                	<div class="btn-group hidden-xs" role="group">
                			<button type="button" class="btn btn-primary" data-toggle="modal" id="create" name="purchase/create.jsp">
	                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加
	                        </button>
	                        <button type="button" class="btn btn-success" data-toggle="modal" id="update" name="purchase/view.do">
	                            <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>修改
	                        </button>
	                        <button type="button" class="btn btn-danger" data-toggle="modal" id="delete" name="purchase/delete.do">
	                            <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>删除
	                        </button>
		                 </div>
	                </div>
	                 <!-- ------------按钮组 end------------ -->
						<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
						<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		                 <table class="table table-striped table-bordered table-hover table-condensed">
					        <thead>
					            <tr>
					                <th><input type="checkbox" id="checkall"/></th>
					                <th>采购组织</th>
					                <th>价格组</th>
					                <th>供应商</th>
									<th>采购价编号</th>
									<th>物资</th>
									<th>物资分类</th>
									<th>规格</th>
									<th>计价单位</th>
									<th>价格员</th>
									<th>状态</th>
									<th>操作</th>
					            </tr>
					        </thead>
					        <tbody>
					        	<c:set var="vs"></c:set>
					        	<c:forEach var="e" items="${page.list }" varStatus="v">
						            <tr>
										<td><input type="checkbox" name="ids" value="${e.purchaseId }"/></td>
										<%--采购组织--%>
						                <td>${e.supplierGroupId}</td>
										<%--价格组--%>
						                <td>${e.priceGroupId}</td>
										<%--供应商--%>
						                <td>${e.supplierId}</td>
										<%--采购价编号--%>
						                <td>${e.priceNumber}</td>
										<%--物资--%>
						                <td>${e.gamId}</td>
										<%--物资分类--%>
						                <td>${e.gamType}</td>
										<%--物资规格--%>
						                <td>${e.gamSize}</td>
										<%--计价单位--%>
						                <td>${e.chargeUnit}</td>
										<%--价格员--%>
						                <td>${e.priceCreater}</td>
										<%--状态--%>
						                <td>${e.priceId}</td>
										<%--操作--%>
						                <td>
											<button type="button" class="btn btn-warning">调价</button>
											<button type="button" class="btn btn-success">编辑</button>
											<button type="button" class="btn btn-danger">审核</button>
										</td>
						            </tr>
					            </c:forEach>
					        </tbody>
					    </table>
				    <div class="page">${page}</div>
			     </div>
			     </form>
			</div>
		</div>
	</body>
</html>